﻿@model Hotel.Web.Models.Admin

@{
    ViewBag.Title = Hotel.Web.Views.Administrator.Resource.AddNewAccount;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Hotel.Web.Views.Administrator.Resource.AddNewAccount</h2>
@using (Html.BeginForm())
{
    @Html.LabelFor(model => model.Login)<br />
    @Html.EditorFor(model => model.Login) 
    @Html.ValidationMessageFor(model => model.Login) <br />
    @Html.LabelFor(model => model.Password)<br />
    @Html.EditorFor(model => model.Password) 
    @Html.ValidationMessageFor(model => model.Password) <br />
    @Html.LabelFor(model => model.SelectedRole)<br />
    @Html.DropDownList(Hotel.Web.Views.Administrator.Resource.SelectedRole, new SelectList(Enum.GetValues(typeof(Hotel.Web.Models.Admin.CurrSelectedRole)))) <br />
    <br />

    <p />
    <input type="submit" value=@Hotel.Web.Views.Administrator.Resource.CreateAccount />
}